# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-ulid-py
_pkgname=ulid-py
pkgver=1.1.0
pkgrel=7
pkgdesc='Universally Unique Lexicographically Sortable Identifier.'
arch=('any')
url='https://pypi.org/project/ulid-py/#files'
license=('Apache')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('4c7ebbe05b94bdfb8e018d2b7f5855a955ce48e94d202d8fa66f6184913698175afac77965f7e873acf86497d9afaa3d22b3e70bfa771b429797e91128935185')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

